import {GET,POST,UPLOAD} from '@/api/request.js'

export default {
    register(data = {})
    {
        return POST({
            // /shop/business/base/register
            url:'/business/base/register',
            params:data
        })
    },
    login(data={}){
        return POST({
            url:'/business/base/login',
            params:data
        })
    },
    check(data){
        return POST({
            url:'/business/base/check',
            params:data
        })
    },
    sendCode(data){
        return POST({
            url:'/business/base/send',
            params:data
        })
    },
    checkEmail(data){
        return POST({
            url:'/business/base/email',
            params:data
        })
    },
    profile(data){
        return UPLOAD({
            url:'/business/base/profile',
            params:data
        })
    },
    collection(data){
        return POST({
            url:'/business/base/collection',
            params:data
        })
    },
}